package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 商户微信配置表
 * </p>
 *
 * @author wpdcn
 * @since 2020-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_account_wx_config")
@ApiModel(value="SysAccountWxConfigEntity对象", description="商户微信配置表")
public class SysAccountWxConfigEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "商户id")
    @ApiModelProperty(value = "商户id")
    private Long accountId;

    @Column(comment = "微信公众号的appid")
    @ApiModelProperty(value = "微信公众号的appid")
    private String mpAppId;

    @Column(comment = "微信公众号的app secret")
    @ApiModelProperty(value = "微信公众号的app secret")
    private String mpSecret;

    @Column(comment = "微信公众号的token")
    @ApiModelProperty(value = "微信公众号的token")
    private String mpToken;

    @Column(comment = "微信公众号的EncodingAESKey")
    @ApiModelProperty(value = "微信公众号的EncodingAESKey")
    private String mpAesKey;

    @Column(comment = "微信小程序的appid")
    @ApiModelProperty(value = "微信小程序的appid")
    private String maAppId;

    @Column(comment = "微信小程序的Secret")
    @ApiModelProperty(value = "微信小程序的Secret")
    private String maSecret;

    @Column(comment = "微信小程序消息服务器配置的token")
    @ApiModelProperty(value = "微信小程序消息服务器配置的token")
    private String maToken;

    @Column(comment = "微信小程序消息服务器配置的EncodingAESKey")
    @ApiModelProperty(value = "微信小程序消息服务器配置的EncodingAESKey")
    private String maAesKey;

    @Column(comment = "消息格式，XML或者JSON")
    @ApiModelProperty(value = "消息格式，XML或者JSON")
    private String maMsgDataFormat;

    @Column(comment = "微信支付商户号")
    @ApiModelProperty(value = "微信支付商户号")
    private String payMchId;

    @Column(comment = "微信支付商户密钥")
    @ApiModelProperty(value = "微信支付商户密钥")
    private String payMchKey;

    @Column(comment = "cert.p12文件的绝对路径")
    @ApiModelProperty(value = "cert.p12文件的绝对路径")
    private String payKeyPath;

    @Column(comment = "公众号二维码url")
    @ApiModelProperty("公众号二维码url")
    private String mpPicUrl;

    @Column(comment = "小程序二维码url")
    @ApiModelProperty("小程序二维码url")
    private String maPicUrl;


}
